{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "8d6691ec",
   "metadata": {},
   "source": [
    "## app.json:\n",
    "- 小程序的全局变量，全局配置。还可以决定页面文件的路径、窗口表现、设置网络的超时时间、设置tab等。"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "4987fc8e",
   "metadata": {},
   "outputs": [],
   "source": [
    "初始的pages页面只有index，logs两个文件。更改加入detect和compare两个文件夹"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "ac453b56",
   "metadata": {},
   "outputs": [],
   "source": [
    "打开微信开发文档加入tabBar"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "93bad9f3",
   "metadata": {},
   "source": [
    "#### tabBar：加入底部导航栏\n",
    "- iconPath 选中前的图标 注意图片路径\n",
    "- selectedIconPath 选中后的图标"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "1979b728",
   "metadata": {},
   "source": [
    "## detect人脸检测文件\n",
    "- 主要更改js，wxml，wxss文件"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "5cb00311",
   "metadata": {},
   "source": [
    "## 1.detect.js的更改 与detect.wxml息息相关"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "16281261",
   "metadata": {},
   "source": [
    "- data: 增加image，image_base64，detect_results"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "bcbc95d6",
   "metadata": {},
   "source": [
    "----"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "b47cb1eb",
   "metadata": {},
   "source": [
    "#### choose_image：在微信官方文档复制此代码，choose_image此命名需要与detect.wxml<view bindtap=\"choose_image\">选择照片相同</view>"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "be4f5948",
   "metadata": {},
   "source": [
    "#### (微信官方文档)[https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.chooseMedia.html]：选择小程序->API->媒体->视频->chooseMedia"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "991c58b6",
   "metadata": {},
   "source": [
    "----"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "4e8bb7a7",
   "metadata": {},
   "source": [
    "#### face_detect:复制face++的人脸检测请求request\n",
    "- url,method\n",
    "- 更改data：\n",
    "> - 必须：api_key,api_secret,image_base64(三选一)\n",
    "> - 非必须:arributes类"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "0003275b",
   "metadata": {},
   "source": [
    "#### urlTobase64"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "166172bc",
   "metadata": {},
   "outputs": [],
   "source": [
    "## 2.detect.wxml的更改"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "49a47da4",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "4c5a9241",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "4e52af42",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "26742d53",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "ee6935ee",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "72054a1a",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "0827e886",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "8c6d65f4",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "8dbb60ff",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "d1198f1c",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.12"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
